Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't save mouse buttons in autoconfig #16098

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

bslenul
Copy link
Contributor

@bslenul bslenul commented Jan 9, 2024

Description

Currently when you're creating an autoconfig file it also adds some extra mouse buttons (usually "Gun Trigger" and "Gun Reload" as they're bound to mouse 1 and 2 by default) but RetroArch only parses buttons and axis when reading autoconfigs, so these extra lines are completely useless.

So when saving autoconfigs, instead of calling input_config_save_keybind() which saves buttons, axis and mouse buttons let's just save buttons and axis to make sure mouse buttons are ignored.

Related Pull Requests

libretro/retroarch-joypad-autoconfig#1096

Reviewers

@sonninnos probably? It's a very small PR so shouldn't take long to review, I just want to make sure my logic is fine here and I'm also not sure if there's a better way to handle this.

@sonninnos
Copy link
Collaborator

LGTM.

@bslenul bslenul force-pushed the autoconfig-no-mbtn branch from 172f672 to 71e1135 Compare January 9, 2024 16:25
@LibretroAdmin LibretroAdmin merged commit caf2bcb into libretro:master Jan 10, 2024
23 checks passed
@bslenul bslenul deleted the autoconfig-no-mbtn branch January 10, 2024 15:42
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants